variable in scss

66

$base-color: #c6538c;
$border-dark: rgba($base-color, 0.88);

.alert {
  border: 1px solid $border-dark;
}
/*This is done by naming a variable with a dollar symbol $ and then referencing it elsewhere
in your code. */
$primary-color: #24a0ed;

.text {
  color: $primary-color;
}
button {
  color: $primary-color;
  border: 2px solid $primary-color;
}

Comments

Submit
0 Comments